<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    let user={name:'longtao',age:18};
    //定义对象 es6用法
    let {name,age}=user;
    console.log(name,age)
</script>
</html>